<div data-role="page" data-url="<%= Rho::RhoConfig.start_path %>/">

  <div data-role="header" data-position="fixed" data-tap-toggle="false">
    <h1>Chọn lớp</h1>
    <a data-role="button" data-theme="a" data-rel="back">Chọn môn</a>
  </div>

  <div data-role="content">
    <div>
      <form method="Post" action="<%= url_for :action => :do_select_grade %>">
      <fieldset data-role="controlgroup">
        <legend>Chọn lớp học</legend>
        
        <% @grades.each do |grade| %>
          <input type="checkbox" name="grade[<%=grade['id']%>]" id="grade-<%= grade['id'] %>" />
          <label for="grade-<%= grade['id'] %>"><%= grade['name'] %></label>
        <% end %>
      
      </fieldset>
      <input type="submit" value="Đăng ký" data-theme="b" />
      </form>
    </div>
  </div>

</div>
